package com.netease.framework;

import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class PreferenceActivityEx extends PreferenceActivity
  implements c, e
{
  private String a = null;
  private final String b = "logname";

  private ComponentName a()
  {
    ComponentName localComponentName = getComponentName();
    if (localComponentName == null)
      localComponentName = new ComponentName(this, getClass());
    return localComponentName;
  }

  private String b()
  {
    Object localObject = null;
    try
    {
      ActivityInfo localActivityInfo2 = getPackageManager().getActivityInfo(a(), 128);
      localActivityInfo1 = localActivityInfo2;
      if (localActivityInfo1 == null)
        return localObject;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      while (true)
      {
        localNameNotFoundException.printStackTrace();
        ActivityInfo localActivityInfo1 = null;
        continue;
        if (localActivityInfo1.metaData == null)
          continue;
        int i = localActivityInfo1.metaData.getInt("logname");
        if (i <= 0)
          continue;
        try
        {
          String str = getResources().getString(i);
          localObject = str;
        }
        catch (Resources.NotFoundException localNotFoundException)
        {
          localNotFoundException.printStackTrace();
        }
      }
    }
  }

  public void a(Activity paramActivity)
  {
    j.d(paramActivity);
  }

  public void b(Activity paramActivity)
  {
    j.i(paramActivity);
  }

  public void c(Activity paramActivity)
  {
    j.g(paramActivity);
  }

  public void d(Activity paramActivity)
  {
    j.f(paramActivity);
  }

  public void e(Activity paramActivity)
  {
    j.e(paramActivity);
  }

  public String f()
  {
    if (this.a == null)
      this.a = b();
    return this.a;
  }

  public void f(Activity paramActivity)
  {
    j.h(paramActivity);
  }

  public void f_()
  {
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    a(this);
  }

  protected void onDestroy()
  {
    super.onDestroy();
    b(this);
  }

  protected void onPause()
  {
    super.onPause();
    c(this);
  }

  protected void onResume()
  {
    super.onResume();
    d(this);
    com.netease.pris.d.c.b(f());
  }

  protected void onStart()
  {
    super.onStart();
    e(this);
  }

  protected void onStop()
  {
    super.onStop();
    f(this);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.PreferenceActivityEx
 * JD-Core Version:    0.6.0
 */